﻿namespace BJYJ_Admin.Application.System.Dtos
{
    /// <summary>
    /// 菜单新增DTO
    /// </summary>
    public class MenuInfoInsertDto
    {
        /// <summary>
        /// 图标
        /// </summary>
        public string ICON { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MENUNAME { get; set; }

        /// <summary>
        /// 菜单链接
        /// </summary>
        public string MENULINK { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public int PID { get; set; }

        /// <summary>
        /// 菜单状态0启用1禁用
        /// </summary>
        public int STATUS { get; set; }

        /// <summary>
        /// 菜单完整路径
        /// </summary>
        public string PARENT_PATH { get; set; }

        /// <summary>
        /// 菜单深度
        /// </summary>
        public int DEPTH { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int ORDER_NUM { get; set; }
    }
    
    /// <summary>
    /// 菜单主键DTO
    /// </summary>
    public class MenuInfoIDDto : BaseIdInput
    {

    }
    /// <summary>
    /// 菜单主键DTO
    /// </summary>
    public class MenuStatusDto : BaseIdInput
    {
        /// <summary>
        /// 状态0启用1禁用
        /// </summary>
        public int STATUS { get; set; }
    }

    /// <summary>
    /// 菜单查询
    /// </summary>
    public class MenuSearchDto: BasePageRequest
    {
        /// <summary>
        /// 菜单名称    
        /// </summary>
        public string MENUNAME { get; set; }

        /// <summary>
        /// 状态0启用1禁用
        /// </summary>
        public int? STATUS { get; set; }

        /// <summary>
        /// 获取深度
        /// </summary>
        public int? DEPTH { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public int? PID { get; set; }
    }
    public class MenuListOutDto
    {


        /// <summary>
        /// 备  注:主键
        /// 默认值:
        ///</summary>
        public int ID { get; set; }

        /// <summary>
        /// 备  注:图标
        /// 默认值:
        ///</summary>
        public string? ICON { get; set; }

        /// <summary>
        /// 备  注:菜单名称
        /// 默认值:
        ///</summary>
        public string? MENUNAME { get; set; }

        /// <summary>
        /// 备  注:菜单路径
        /// 默认值:
        ///</summary>
        public string? MENULINK { get; set; }

        /// <summary>
        /// 备  注:父级ID
        /// 默认值:
        ///</summary>
        public int? PID { get; set; }

        /// <summary>
        /// 备  注:状态0启用1禁用
        /// 默认值:
        ///</summary>
        public int? STATUS { get; set; }

        /// <summary>
        /// 备  注:父级路径
        /// 默认值:
        ///</summary>
        public string? PARENT_PATH { get; set; }

        /// <summary>
        /// 备  注:深度
        /// 默认值:
        ///</summary>
        public int? DEPTH { get; set; }

        /// <summary>
        /// 备  注:排序
        /// 默认值:
        ///</summary>
        public int? ORDER_NUM { get; set; }

        /// <summary>
        /// 备  注:创建人
        /// 默认值:
        ///</summary>
        public string? CREATE_BY { get; set; }

        /// <summary>
        /// 备  注:创建时间
        /// 默认值:
        ///</summary>
        public DateTime? CREATE_TIME { get; set; }

        /// <summary>
        /// 备  注:更新人
        /// 默认值:
        ///</summary>
        public string? UPDATE_BY { get; set; }

        /// <summary>
        /// 备  注:更新时间
        /// 默认值:
        ///</summary>
        public DateTime? UPDATE_TIME { get; set; }


        /// <summary>
        /// 备  注:是否有子节点
        /// </summary>
        public bool HASCHILDREN { get; set; }


    }

}
